package bb.lanxing.lib.devices.ble.ble.services;

//import com.alipay.sdk.packet.d;
import bb.lanxing.lib.devices.ble.ble.base.BaseBleSensorDevice;
import bb.lanxing.lib.devices.ble.ble.base.BaseBleService;
import bb.lanxing.lib.devices.ble.ble.base.BaseResponsiveCharacteristic;
import bb.lanxing.lib.devices.ble.ble.characteristic.xoss.XossCmdCharacteristics;
import bb.lanxing.lib.devices.ble.ble.characteristic.xoss.XossNotifyCharacteristics;
import java.util.UUID;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Intrinsics;

public final class XossCmdService extends BaseBleService {
    private BaseResponsiveCharacteristic xossResponsiveCharacteristic;

    public XossCmdService(BaseBleSensorDevice device) {
        super(device);
        Intrinsics.checkNotNullParameter(device, "device");
    }

    public BaseResponsiveCharacteristic getXossResponsiveCharacteristic() {
        return this.xossResponsiveCharacteristic;
    }

    public void setXossResponsiveCharacteristic(BaseResponsiveCharacteristic baseResponsiveCharacteristic) {
        this.xossResponsiveCharacteristic = baseResponsiveCharacteristic;
    }

    @Override
    public UUID targetUUID() {
        UUID fromString = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e");
//        Intrinsics.checkNotNullExpressionValue(fromString, "fromString(BLEAttributes.BLE_WINGS_SERVICE)");
        return fromString;
    }

    @Override
    public Object initialization(Continuation<? super Unit> continuation) {
        XossCmdService xossCmdService = this;
        this.xossResponsiveCharacteristic = new BaseResponsiveCharacteristic(new XossCmdCharacteristics(xossCmdService), new XossNotifyCharacteristics(xossCmdService), false, 4, null);
        return Unit.INSTANCE;
    }
}
